package BusinessLogic;

import java.util.ArrayList;

import Data.ReturnGoodRecord;
import Data.SaleRecordData;
import Data.SaleRecordDataOperator;

public interface IReturnController {

	public SaleRecordData getSaleRecordDataBySaleIDControl(int SaleID);
	public boolean addItemControl(int SaleID,int GoodID,int GoodNumber,double price,double specialPrice,String date);
	public boolean removeItemControl(int SaleID,int GoodID,int GoodNumber,double price,double specialPrice,String date);
	public double returnGoodControl();
	public boolean startUpdateControl();
	public String getGoodDescriptionByIDControl(int ID);
	public double getGoodPriceByIDControl(int ID);
	public double getGoodSpecialPriceByIDControl(int ID);
	public String getGoodSpecialTimeStartByIDControl(int ID);
	public String getGoodSpecialTimeEndByIDControl(int ID);
	public double getGoodNumberByIDControl(int ID);
	public String getUserNameByIDControl(int ID);
	public String getUserPasswordByIDControl(int ID);
	public Double getGoodOriginalPriceByIDControl(int ID);
	public Double getGoodOriginalSpecialPriceByIDControl(int ID);
	public String getSaleDateByIDControl(int ID);
	public int getNextReturnIDControl();
	public boolean saveReturnGoodRecordControl(int goodID,String goodName,double returnNumber,double price,double specialPrice,String returnDate,int saleID);
	public ArrayList<ReturnGoodRecord> readReturnGoodRecordBySaleIDControl(int ID);
	
}
